/*
 *  实用工具
 */
#pragma once
#include <cstdint>
#include <cstring>

namespace wheels {

void setThrAffinity(uint32_t cpuCores);

/// 字节对齐
inline uint32_t align(uint32_t val, uint8_t ali) { return (val + ali - 1) & (~(ali - 1)); }

/**
 * @brief
 *
 * @param path
 * @return const char*
 */
const char *xc_basename(const char *path);

}  // namespace wheels
